#!/bin/bash
array=""
while read -r line || [[ -n ${line} ]]; do
    array=($(echo ${line} | tr '[:punct:]' " "))
    for i in ${array[*]}; do
        if [[ ${#i} -gt 3 ]]; then
            ret=${i}
        fi
    done
done < input.txt

